unit splash;

{$mode objfpc}

interface

uses
  // RTL, FCL, LCL
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  ComCtrls, StdCtrls;

type

  { TFormSplash }

  TFormSplash = class(TForm)
    labelMsg: TLabel;
    ProgressBar: TProgressBar;
  private
    { private declarations }
  public
    { public declarations }
    procedure UpdateStatus(AProgress: Integer; AMsg: string);
  end; 

var
  FormSplash: TFormSplash;

implementation

{ TFormSplash }

procedure TFormSplash.UpdateStatus(AProgress: Integer; AMsg: string);
begin
  ProgressBar.Position := AProgress;
  labelMsg.Caption := AMsg;
  Application.ProcessMessages;
end;

initialization
  {$I splash.lrs}

end.

